package com.mhdanh.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import jxl.write.WriteException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mhdanh.service.ExcelExportService;

@Controller
public class ExcelController {

	@Autowired
	ExcelExportService excelExportService;
	
	@RequestMapping("/export-excel")
	public void index(HttpServletResponse httpServletResponse) throws WriteException, IOException{
		excelExportService.exportExcel(httpServletResponse);
	}
}
